package com.bdqn.vo;

import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class Page {
    private Integer pageNo;
    private Integer pageSize;
    private Integer pageCount;
    private Integer pageTotalCount;
    private List<AppInfoListVo> appInfoList;

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
        this.pageTotalCount = this.pageCount%this.pageSize==0?this.pageCount/this.pageSize:this.pageCount/this.pageSize+1;
    }

    public Integer getPageTotalCount() {
        return pageTotalCount;
    }

    public void setPageTotalCount(Integer pageTotalCount) {
        this.pageTotalCount = pageTotalCount;
    }

    public List<AppInfoListVo> getAppInfoList() {
        return appInfoList;
    }

    public void setAppInfoList(List<AppInfoListVo> appInfoList) {
        this.appInfoList = appInfoList;
    }
}
